package health_system.health_system.exception;

import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;

@ResponseStatus(HttpStatus.CONFLICT)
public class FriendshipAlreadyExistsException extends RuntimeException {
    
    public FriendshipAlreadyExistsException(String message) {
        super(message);
    }
    
    public FriendshipAlreadyExistsException(Long requesterId, Long addresseeId) {
        super(String.format("Friendship already exists between users with id: '%s' and '%s'", requesterId, addresseeId));
    }
} 